import request from "@/utils/request";

//查询所有楼层id组成的数组
export function listFloorId() {
  return request({
    url: "/service/manage",
    method: "get",
  });
}

//根据楼层id查询楼层的房间信息
export function getRoomByFloorId(floorId) {
  return request({
    url: "/service/manage/" + floorId,
    method: "get",
  });
}

//获取护理员列表
export function getNurseList() {
  return request({
    url: "/service/manage/nurses",
    method: "get",
  });
}

//更新护理员绑定关系
export function updateNurseBinding(data) {
  return request({
    url: "/service/manage/nurses",
    method: "put",
    data: data,
  });
}
